package com.qf.fmcommodity.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.fmcommodity.user.entity.ProductParams;
import com.qf.fmcommodity.user.mapper.ProductParamsMapper;
import com.qf.fmcommodity.user.service.IProductParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 商品参数  服务实现类
 * </p>
 *
 * @author 苇名一心
 * @since 2023-02-13
 */
@Service
public class ProductParamsServiceImpl extends ServiceImpl<ProductParamsMapper, ProductParams> implements IProductParamsService {



    @Override
    public ProductParams detailParams(Integer id) {

        ProductParams productParams = getOne(new QueryWrapper<ProductParams>().eq("product_id", id));


        return productParams;
    }


}
